package org.web.common.sso.client.biz.impl;

public interface PropertiesConstantInterface {

    /***
     * PROPERTIES_ 配置文件的参数名称。
     */
    String PROPERTIES_PREFIX = "org.web.sso.client.";
    String PROPERTIES_COOKIE = "cookie.";
    String PROPERTIES_FILE_NAME = PROPERTIES_PREFIX + "properties-file-name";
    String PROPERTIES_TOKEN_NAME = PROPERTIES_PREFIX + "token-name"; // token 在cookie中的定义变量名称。
    String PROPERTIES_IGNORE_LIST = PROPERTIES_PREFIX + "ignore-url-str"; // 免登陆URI信息，可以为空，用分号分隔。
    String PROPERTIES_SSO_SERVER_ADDRESS = PROPERTIES_PREFIX + "sso-server-address"; // 重定向URL，可以是三方URL，必填。

    String PROPERTIES_SSO_VERSION = PROPERTIES_PREFIX + "sso-version"; // sso-version,非必填
    String PROPERTIES_IS_COOKIE_WAY = PROPERTIES_PREFIX + "is-cookie-way"; // sso-version,非必填

    String PROPERTIES_COOKIE_PATH = PROPERTIES_PREFIX + PROPERTIES_COOKIE + "cookie-path"; // 非必填
    String PROPERTIES_COOKIE_HTTP_ONLY = PROPERTIES_PREFIX + PROPERTIES_COOKIE + "cookie-http-only"; // 非必填
    String PROPERTIES_COOKIE_SECURE = PROPERTIES_PREFIX + PROPERTIES_COOKIE + "cookie-secure"; // 非必填
    String PROPERTIES_COOKIE_VERSION = PROPERTIES_PREFIX + PROPERTIES_COOKIE + "cookie-version"; // 非必填
    String PROPERTIES_COOKIE_MAX_AGE = PROPERTIES_PREFIX + PROPERTIES_COOKIE + "cookie-max-age"; // 非必填

    /***
     * PROPERTIES_ 参数默认值。
     */
    String PROPERTIES_TOKEN_NAME_DEFAULT_VALUE = "ssoToken";
    String PROPERTIES_FILE_NAME_DEFAULT_VALUE = "application";

    String PROPERTIES_SSO_VERSION_DEFAULT_VALUE = "1.0";

    /***
     * getSessionByTokenResultDO
     */
    String SESSION_ATTRIBUTE_NAME = "SESSION_ATTRIBUTE_SSO";

    String PARAMETER_SSO_EXCHANGE_TOKEN = "ssoExchangeToken";
}
